//
//  ZWBoomTomView.m
//  WanEr
//
//  Created by 高文萍 on 16/1/19.
//  Copyright © 2016年 ziwokeji. All rights reserved.
//

#import "ZWBoomTomView.h"
#import "MusicTimeFormatter.h"
#import "PlayerManager.h"
@interface ZWBoomTomView()

@property (weak, nonatomic) IBOutlet UIButton *nextButton;
@property (weak, nonatomic) IBOutlet UIButton *playButton;
@property (weak, nonatomic) IBOutlet UIButton *upButton;
@property (nonatomic, assign) BOOL selecting;

@end
@implementation ZWBoomTomView
- (IBAction)didUpButtonClicked:(UIButton *)sender {
    [[PlayerManager playerManager]upMusic];
}

- (IBAction)didPlayButtonClick:(UIButton *)sender {
    
    self.selecting = !self.selecting;
    if (self.selecting) {
        
        [[PlayerManager playerManager] pause];
        [sender setImage:[UIImage imageNamed:@"播放-1"] forState:UIControlStateNormal];
    }else{
        [[PlayerManager playerManager] musicPlay];
        [sender setImage:[UIImage imageNamed:@"暂停-1"] forState:UIControlStateNormal];
    }

}

- (IBAction)didNextButtonClick:(UIButton *)sender {
    [[PlayerManager playerManager] nextMusic];

}



@end
